package com.example.service.impl;

import com.example.dao.AdminMapper;
import com.example.domain.Admin;
import com.example.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//管理员登录
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    //登录
    @Override
    public Admin login(Admin admin) {
        return adminMapper.login(admin);
    }
}